package com.disruptor.base;

import com.lmax.disruptor.EventHandler;

//事件处理器,即事件消费者,把数据打印到终端,模拟消费数据
public class LongEventHandler01 implements EventHandler<LongEvent> {

    //监听事件发布并处理获取到的数据
    @Override
    public void onEvent(LongEvent longevent, long arg1, boolean arg2) throws Exception {
        System.out.println("01获取到数据:" + longevent.getValue());

    }

}
